package br.usp.pcs.basys2.event;

import java.util.Calendar;
import br.usp.pcs.basys2.BasysProcess;
import br.usp.pcs.basys2.processor.ProcessorManager;

public class RequestProcessorEvent extends Event {

	private ProcessorManager processorManager;

	public RequestProcessorEvent(BasysProcess process, Calendar dateOfArrival, ProcessorManager processorManager) {
		super(process, dateOfArrival);
		this.processorManager = processorManager;
	}

	@Override
	public void execute() {
		processorManager.requestProcess(getProcess());
	}

}
